<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@ taglib uri="/WEB-INF/tags/CommonFunction.tld" prefix="cfn" %>
<%@include file="/commons/include/html_doctype.html" %>
<html>
<head>
<title>原材料帐</title>
<%@include file="/commons/include/get.jsp" %>
<script type="text/javascript" src="${ctx}/js/calendar/date.js"></script>
<script type="text/javascript">
$(function(){
	selectDateMonth($("#acc_period_panel"), $("#acc_period"));
});
</script>
</head> 
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title">原材料帐</td>
		<td>
			<div class="menuTool">
			<a class="del" id="listFormDelAll" href="delMaterialAcc.htm">删除所选</a>
			<a class="add" href="addMaterialAcc1.htm">添加</a>
			<a class="back" onClick="javascript:history.back();" href="#">返回</a>
			</div>
		</td>
	</tr>
</table>
<div class="line"></div>
<form id="queryForm" method="post" action="getMaterialAcc.htm">
<table border="0" cellspacing="0" cellpadding="0" class="queryTable">
	<tr>
		<td class="title">核算期：</td>
		<td class="input"><input type="hidden" id="acc_period" name="acc_period" value="${fn:escapeXml(param.acc_period)}" /><div id="acc_period_panel" style="width:120px; float:left;"></div></td>
		<td class="input"><span class="title">凭证号：</span></td>
		<td class="input"><input id="title2" name="voucher_id" class="input" value="${fn:escapeXml(param.voucher_id)}" /></td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
		<td class="input">&nbsp;</td>
	</tr>
	<tr>
		<td class="query" colspan="8"><input id="_querySubmit_" type="submit" class="button" value="查询" /></td>
	</tr>
</table>
</form>
<div class="line"></div>
<form id="listForm" method="post" action="delMaterialAcc.htm">
<table border="0" cellspacing="1" cellpadding="0" class="listTable">
	<tr class="list_title">
		<td style="width:3%"><input id="chkall" type="checkbox" /></td>
		<td>核算期</td>
		<td>凭证号</td>
		<td>物料编号（大类）</td>
		<td>借方数量</td>
		<td>借方金额</td>
		<td>贷方数量</td>
		<td>贷方金额</td>
		<td>本存数量</td>
		<td>本存金额</td>
		<td>操作</td>
	</tr>
<c:forEach items="${pageModel.result}" var="d" varStatus="status">
	<tr class="${status.index%2==0?'list_even':'list_odd'}">
		<td nowrap="nowrap">
			<input name="keyIndex" type="checkbox" value="${d.id}" />
		</td>
		<td>${fn:escapeXml(d.acc_period)}</td>
		<td>${fn:escapeXml(d.voucher_id)}</td>
		<td>${fn:escapeXml(d.material_code)}</td>
		<td>${fn:escapeXml(d.debit_count)}</td>
		<td>${fn:escapeXml(d.debit_money)}</td>
		<td>${fn:escapeXml(d.credit_count)}</td>
		<td>${fn:escapeXml(d.credit_money)}</td>
		<td>${fn:escapeXml(d.bal_count)}</td>
		<td>${fn:escapeXml(d.bal_money)}</td>
		<td>
			<div class="menuTool">
			<a class="del" href="delMaterialAcc.htm?keyIndex=${d.id}">删除</a>
			<a class="upd" href="updMaterialAcc1.htm?keyIndex=${d.id}">修改</a>
			<a class="get" href="getMaterialAccById.htm?keyIndex=${d.id}">详细</a>
			</div>
		</td>
	</tr>
</c:forEach>
</table>
<input id="_submit_" type="submit" style="display:none;" />
</form>
<table border="0" cellspacing="0" cellpadding="0" class="bottomTable">
	<tr><td>${pageNav.page}</td></tr>
</table>
</body>
</html>
